using System;
using System.Collections;
using Rdl;

namespace GTame.ReportParser
{

    public class MinorGridLinesType
    {

        private Nullable<bool> _ShowGridLines;
        private StyleType _Style;

        public Nullable<bool> ShowGridLines
        {
            get
            {
                return _ShowGridLines;
            }
            set
            {
                _ShowGridLines = value;
            }
        }

        public StyleType Style
        {
            get
            {
                if (_Style == null)
                    _Style = new StyleType();
                return _Style;
            }
            set
            {
                _Style = value;
            }
        }

        public MinorGridLinesType()
        {
            _ShowGridLines = new Nullable<bool>[]();
        }

        public MinorGridLinesType Write()
        {
            MinorGridLinesType minorGridLinesType = new MinorGridLinesType();
            ArrayList arrayList = new ArrayList();
            if (_ShowGridLines.get_HasValue())
                arrayList.Add(_ShowGridLines);
            if (_Style != null)
                arrayList.Add(_Style.Write());
            minorGridLinesType.Items = arrayList.ToArray();
            arrayList = null;
            return minorGridLinesType;
        }

    } // class MinorGridLinesType

}

